// 功能: 删除文件(delete file1)
void del(void)
{
int i,chk;
if(argc != 2)
{
printf("Command delete must have one args. \n");
return ;
}
for(i = 0; i < INODENUM; i++)
if((inode_array[i].inum > 0) &&
(inode_array[i].type == '-') &&
!strcmp(inode_array[i].file_name, argv[1])) break;
if(i == INODENUM)
{
printf("This file doesn't exist.\n");
return ;
}
chk=check(i);
if(chk!=1)
{
printf("This file is not your !\n");
return ;
    }
/*inode_array[i].inum = -1;
if(inode_array[i].length > 0)
{
release_blk(inode_array[i].address[0]);
if(inode_array[i].length > 512)
release_blk(inode_array[i].address[1]);
}
save_inode(i);*/
delet(i);
}